package com.yf.broadcast;

import android.content.BroadcastReceiver;
import android.content.Context;
import android.content.Intent;
import android.content.SharedPreferences;
import android.util.Log;

public class DialReceiver extends BroadcastReceiver {

	@Override
	public void onReceive(Context context, Intent intent) {
		SharedPreferences sp = context.getSharedPreferences("voip", Context.MODE_PRIVATE);
		String prefix = sp.getString("prefix", "17951");
		// 获取打电话的号码 
		String pn = getResultData();
		Log.v("Broadcast", pn);
		setResultData(prefix + pn);
	}

}
